body {
  position: relative;

}

.details {
  width: 100%;
  background: var(--bg-body);
  height: 100%;

  .main {
    width: 100%;
    height: calc(100% - 64px);
    margin: 0 16px;
    background: var(--bg-body);

    @media (min-width: 768px) {
      width: 768px;
      margin: 0 auto;
      padding: 0;
    }

    @media(min-width:992px) {
      width: 970px;
    }

    @media(min-width:1200px) {
      width: 1140px;
    }

    img {
      width: 100%;
    }

    .articles {
      min-height: calc(100vh - 64px);
      padding-bottom: 1em;
      padding-top: 1em;
      box-sizing: border-box;
      display: flex;
      justify-content: space-between;

      .left {
        width: calc(100% - 320px);
        background: var(--bg-second);
        box-shadow: var(--box-shadow);
        border-radius: var(--border-radius);
        flex: 1;
        padding: 0 16px;
        position: relative;

        .detailsNav {
          text-align: center;

          h1 {
            margin: 0.67em 0 0;
            color: inherit;
            font-weight: 700;
            font-size: 2.5rem;
            line-height: 1rem;
            line-height: 1.5;
            text-align: center;
          }

          p {
            margin-bottom: 1.2em;
            color: inherit;
            font-style: italic;
            text-align: center;
          }
        }
      }

    }

  }
}

.headers {
  width: 100%;
  height: 64px;
  background: #fff;
}



.right {
  width: 336px;
  margin-left: 16px;

  @media (max-width: 768px) {
    width: 0;
    margin: 0 auto;
    padding: 0;
    display: none;
  }

  .titles {
    width: 100%;
    position: sticky;
    top: 16px;
  }

  .recommend {
    width: 320px;
    height: 260px;
    margin-bottom: 20px;
    background: var(--bg-second);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
  }

  .tag {
    overflow: hidden;
    overflow-y: auto;
    overflow-x: hidden;
    width: 320px;
    box-sizing: border-box;
  }

  .tag::-webkit-scrollbar {
    width: 6px;
  }

  *::-webkit-scrollbar-track {
    background: #e7eaee;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2em;
  }

  *::-webkit-scrollbar-thumb {
    background: #d2d3d3;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 50px;
  }

  .Directory {
    color: var(--main-text-color);
    font-weight: 600;
    line-height: 22px;
    // margin-bottom: 12px;
  }
}

.Publish {
  padding: 21px 0;
  margin-top: 30px;
  line-height: 28px;
  color: var(--second-text-color);
  border-top: 1px dashed var(--border-color);

  >div {
    color: #655e5e;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    margin-bottom: 21px;
  }
}

.dian {
  font-size: 15px;
  font-weight: 1000;
}

b {
  text-align: center;
}

.textmain {
  width: 100%;
  height: 320px;
}

.scrollbar {
  width: 100%;
  height: calc(100% - 24px);
  background: var(--bg-body);
  color: var(--main-text-color);
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
}


.h2 {
  padding-left: 6px;
  cursor: pointer;
  --dot-left: 0px;
  --dot-width: 6px;
  position: relative;
  line-height: 32px;
  width: 100%;
  color: var(--main-text-color);

  :hover {
    color: var(--primary-color);
  }
}

.h2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--dot-left);
  margin-top: -2px;
  width: var(--dot-width);
  height: var(--dot-width);
  background-color: currentColor;
  border-radius: 50%;
}

.h3 {
  padding-left: 24px;
  cursor: pointer;
  --dot-left: 10px;
  --dot-width: 4px;
  position: relative;
  line-height: 32px;
  width: 100%;
  color: var(--main-text-color);

  :hover {
    color: var(--primary-color);
  }
}

.h3::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--dot-left);
  margin-top: -2px;
  width: var(--dot-width);
  height: var(--dot-width);
  background-color: currentColor;
  border-radius: 50%;
}

.h4 {
  padding-left: 36px;
  cursor: pointer;
  --dot-left: 10px;
  --dot-width: 4px;
  position: relative;
  line-height: 32px;
  width: 90%;
  margin-left: 10px;
  color: var(--main-text-color);

  :hover {
    color: var(--primary-color);
  }
}

.h4::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--dot-left);
  margin-top: -2px;
  width: var(--dot-width);
  height: var(--dot-width);
  background-color: currentColor;
  border-radius: 50%;
}

.h5 {
  padding-left: 48px;
  cursor: pointer;
  --dot-left: 10px;
  --dot-width: 2px;
  position: relative;
  line-height: 32px;
  width: 90%;
  margin-left: 20px;
  color: var(--main-text-color);

  :hover {
    color: var(--primary-color);
  }
}

.h5::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--dot-left);
  margin-top: -2px;
  width: var(--dot-width);
  height: var(--dot-width);
  background-color: currentColor;
  border-radius: 50%;
}

.ant-anchor-link-title {
  color: var(--main-text-color);
}

.ant-anchor-link-title:hover {
  color: var(--primary-color);
}

.ant-anchor-link-title-active {
  width: 100%;
  color: var(--primary-color) !important;
  background: var(--bg-second);
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
}

.ant-anchor-wrapper {

  overflow: hidden !important
}

.ant-anchor-ink {
  left: 4px !important;
}

.FloorBright {
  >a {
    color: var(--main-text-color);
  }
}

.Share {
  position: absolute;
  width: 42px;
  height: 128px;
  z-index: 10;
  top: 15vh;
  left: -40px;

  @media(max-width:1020px) {
    position: fixed;
    z-index: 10;
    display: flex;
    justify-content: space-around;
    background-color: var(--bg-second);
    width: 110%;
    height: 52px;
    // height: calc(52px + constant(safe-area-inset-bottom));
    // height: calc(52px + env(safe-area-inset-bottom));
    background-color: var(--bg-second);
    border-top: 1px solid var(--border-color);
    transform: translate(0);
    transition: all .2s;
    line-height: 52px;
    top: 93%;

    >div {
      margin-top: 10px;
    }
  }

  >div {
    width: 32px;
    height: 32px;
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-second);
    color: var(--disable-text-color);
    margin-bottom: 20px;
  }
}

.backtop {
  position: fixed;
  right: 100px;
  bottom: 100px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background-color: rgba(0, 0, 0, .85);
  border-radius: 20px;
  transition: all .3s;
  font-size: 24px;
  line-height: 40px;
  font-style: normal;
  font-weight: 900px;
}


.payment {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 333;
  overflow: hidden;
}

.payment>div {
  width: 400px;
  height: 178px;
  background: rgb(255, 255, 255);
  margin-left: calc(50% - 200px);
  margin-top: 100px;
}

.headerPayment {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  height: 55px;
  line-height: 55px;
  border-bottom: 1px solid rgb(187, 186, 186);
}

.mainPayment {
 height: calc(100% - 110px);
 text-align: center;
 line-height: 50px;
}

.footerPayment {
  height: 55px;
  border-top: 1px solid rgb(181, 181, 181);
  button{
    margin-top: 14px;
    border-radius: 3px;
  }
  button:nth-child(1){
    margin-left: 230px;
    padding: 0 10px;
  }
  button:nth-child(2){
    background: red;
    margin-left: 10px;
    width: 88px;
    color: #fff;
  }
}
